import request from 'utils/request'

//查询车辆检测所有类别
export const queryReportClassAll = async () => {
  return await request({
    url:'/auth/detectionReport/classAll',
    method:'get'
  })
}

//查询车辆检测所有项目
export const queryReportProjectAll = async () => {
  return await request({
    url:'/auth/detectionReport/projectAll',
    method:'get'
  })
}

//上传异常图片(name=file)
export const uploadPhoto = async () => {
  return await request({
    url:'/auth/store/upload',
    method:'post'
  })
}

//生成检测报告
export const saveDetectionReport = async (data) => {
  return await request({
    url:'/auth/detectionReport/saveDetectionReport',
    method:'post',
    data
  })
}

//查询车辆检测异常记录页
export const carDetectionReportById = async (id) => {
  return await request({
    url:'/auth/detectionReport/carDetectionReportByid?detectionReportId='+id,
    method:'get'
  })
}